//
//  ITVolumeManager.h
//  InTubePro
//
//  Created by seven on 2020/2/5.
//  Copyright © 2020 seven. All rights reserved.
//

#import "BaseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface ITVolumeManager : BaseModel
+ (instancetype)shareManager;

IT_PROPERTY_ASSIGN CGFloat volume;
IT_PROPERTY_STRONG UISlider *systemSlider;

IT_PROPERTY_ASSIGN BOOL ignoreSystemVolume;

@property(nonatomic, copy)CustomAction customAction;//自定义block

/*
 * 继续播放后台背景音乐, 取消激活当前应用的audio session
 **/
+ (void)resumeBackgroundSound;

/*
 * 暂停后台背景音乐的播放，激活当前应用的audio
 * @param error 设置失败时的错误信息
 **/
+ (void)pauseBackgroundSound;

+ (void)pauseBackgroundSoundWithCategoryRecord;

@end

NS_ASSUME_NONNULL_END
